<?php
/**
	 * * CONFIG.INC.PHP
	 *  configuration file
	 *  
	 *  
	 */

if (!version_compare(PHP_VERSION, '5.2.3', '>='))
{
	echo 'VERSION must be larger than 5.2.3 ';
}

define('__DOCROOT__', substr(dirname(__FILE__), 0, -7));
define('__WEBROOT__', strtolower('http://'.$_SERVER['HTTP_HOST'].'/'.__DIR__));


$_CONFIG                                        =     array();

$_CONFIG['system']['DefaultCharset']			=	  'UTF-8';
$_CONFIG['system']['RegisterStatus']			=		1;

$_CONFIG['upload']['maxsize']					=		'1024000';
$_CONFIG['upload']['maxsize_bg']				=		'4096000';

$_CONFIG['redirect']['DefaultTarget']           =     __WEBROOT__.'index.php';
$_CONFIG['redirect']['RedirectTime']            =     1;

$_CONFIG['sec']['forbidden']					=	  array('\'', '/*', '*/', 'select', 'outfile', 'readfile');

/********** db config **********/
$_CONFIG['database']['DbHost']                  =     'localhost';
$_CONFIG['database']['DbUser']                  =     'root';
$_CONFIG['database']['DbPass']                  =     '';
$_CONFIG['database']['DbName']                  =     'ecomm';
$_CONFIG['database']['DefaultCharset']          =     'utf-8';
$_CONFIG['database']['TablePrefix']             =     'e_';

/********** template config **********/
$_CONFIG['style']['templates']                  =     array('default');
$_CONFIG['style']['stylesheets']                =     array('default');
$_CONFIG['style']['DefaultTemplate']            =     0;
$_CONFIG['style']['DefaultStyleSheet']          =     0;
$_CONFIG['style']['cssdir']                     =     __WEBROOT__.'css/';
/********** smarty config **********/
$_CONFIG['smarty']['template_dir']         =   __DOCROOT__ . '/templates/' . $_CONFIG['style']['templates'][0] . '/template/'   ;
$_CONFIG['smarty']['compile_dir']          =   __DOCROOT__ . '/templates/' . $_CONFIG['style']['templates'][0] . '/template_c/' ;
$_CONFIG['smarty']['config_dir']           =   __DOCROOT__ . '/templates/' . $_CONFIG['style']['templates'][0] . '/config/'     ;
$_CONFIG['smarty']['cache_dir']            =   __DOCROOT__ . '/templates/' . $_CONFIG['style']['templates'][0] . '/cache/'      ; 
$_CONFIG['smarty']['left_delimiter']       =   '<!--{';
$_CONFIG['smarty']['right_delimiter']      =   '}-->';



?>
